<%@ page import="top.lbqaq.pojo.Material" %>
<%@ page import="java.util.List" %>
<%@ page import="top.lbqaq.service.MaterialService" %><%--
  Created by IntelliJ IDEA.
  User: 12197
  Date: 2021/11/25
  Time: 16:22
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<%@include file="/jsp/common/head.jsp" %>
<div class="card-header d-flex justify-content-between">
    <div class="header-title">
        <h4 class="card-title">
            材料修改
        </h4>
    </div>
</div>
<p style="color: red;">${message}</p>
<div class="card-body">
    <form action="${pageContext.request.contextPath}/material?methodd=update&method=${way}&condition=${condition}" method="post">
        <div class="form-group">
            <label for="leibie">材料类别</label>
            <input id="leibie" name="leibie" required class="form-control" value="${material.materialCategory}" type="text">
        </div>

        <div class="form-group">
            <label for="mingcheng">材料名称</label>
            <input id="mingcheng" name="mingcheng" required class="form-control" value="${material.materialName}" type="text"  placeholder="请输入材料名称">
        </div>

        <div class="form-group">
            <label for="danwei">单位</label>
            <input id="danwei" name="danwei" required class="form-control"  value="${material.materialUnit}" type="text" min="1" placeholder="请输入单位">
        </div>

        <div class="form-group">
            <label for="danjia">单价</label>
            <input id="danjia" name="danjia" required class="form-control" value="${material.materialUnitPrice}" type="text">
        </div>
        <div class="form-group">
            <label for="jine">金额</label>
            <input id="jine" name="jine" required class="form-control" value="${material.materialAmount}" min="0" type="text" >
        </div>
        <div class="form-group">
            <label for="shiyong">使用</label>
            <input id="shiyong" name="shiyong" required class="form-control"  value="${material.materialUse}" type="text" >
        </div>
        <div class="form-group">
            <label for="beizhu">备注</label>
            <input id="beizhu" name="beizhu" required class="form-control" value="${material.materialRemark}" type="text">
        </div>
        <button class="btn btn-primary" type="submit">提交</button>
    </form>
    <a class="btn btn-primary" href="/material?methodd=select&method=${way}&mingcheng=${condition}">返回</a>
</div>
<%@include file="/jsp/common/footer.jsp" %>
